package com.nulldev.util.internal.backport.httpclient_rw.impl.frame;

import java.nio.ByteBuffer;
import java.util.List;

import com.nulldev.util.internal.backport.concurrency9.Lists;

public class ContinuationFrame extends HeaderFrame {

	public static final int TYPE = 0x9;

	public ContinuationFrame(int streamid, int flags, List<ByteBuffer> headerBlocks) {
		super(streamid, flags, headerBlocks);
	}

	public ContinuationFrame(int streamid, ByteBuffer headersBlock) {
		this(streamid, 0, Lists.of(headersBlock));
	}

	@Override
	public int type() {
		return TYPE;
	}

	@Override
	int length() {
		return headerLength;
	}

}
